/*
 * @Author: your name
 * @Date: 2020-11-07 13:51:33
 * @LastEditTime: 2021-04-16 17:00:02
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue-element-admine:\hjimi\人脸\html\face-recognition\src\api\propertiesShow.js
 */
import request from '@/utils/request'

let apis = 'apis/api/algo/face/'

/**
 * @description: 人脸属性（年龄性别）
 * @param {datas,format,height,imageId,libraryCode,width} 
 */
export function attribute(params) {
    return request({
      url: `${ apis }attribute`,
      method: 'post',
      data: params
    })
  }

  /**
 * @description: 人脸检测与质量评估(坐标，lamdmark)
 * @param {
  * mask 遮挡
   *light 光照
   *expression 表情
   *glasses 眼镜
   *angle 角度
   *age 年龄
   *gender 性别
   *landmark106 106特征点
  } 
 */
export function detectandevaluate(params) {
  return request({
    url: `${ apis }detectandevaluate/v2`,
    method: 'post',
    data: params
  })
}

  /**
 * @description: 最大单人脸提取特征
 * @param {showFeature,files,'imageDescs.format','imageDescs.width','imageDescs.height'} 
 */
export function extractFeature(params) {
  return request({
    url: `${ apis }extractFeature`,
    method: 'post',
    data: params
  })
}